package com.tjy.wfx.model;


import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

@Table
public class SysModule {
@Id
  private String moduleId;
  private String moduleCode;
  private String moduleName;
  private String linkUrl;
  private Integer moduleOrder;
  private String parentModule;
  private String moduleDesc;
  private String expanded;
  private String leaf;

  @Transient
  private List<SysModule> code = new ArrayList<>();

  @Transient
  private Boolean checked = false;
  @Transient
  private Boolean open = false;

  public Boolean getOpen() {
    return open;
  }

  public void setOpen(Boolean open) {
    this.open = open;
  }

  public Boolean getChecked() {
    return checked;
  }

  public void setChecked(Boolean checked) {
    this.checked = checked;
  }

  public List<SysModule> getCode() {
    return code;
  }

  public void setCode(List<SysModule> code) {
    this.code = code;
  }

  public String getModuleId() {
    return moduleId;
  }

  public void setModuleId(String moduleId) {
    this.moduleId = moduleId;
  }


  public String getModuleCode() {
    return moduleCode;
  }

  public void setModuleCode(String moduleCode) {
    this.moduleCode = moduleCode;
  }


  public String getModuleName() {
    return moduleName;
  }

  public void setModuleName(String moduleName) {
    this.moduleName = moduleName;
  }


  public String getLinkUrl() {
    return linkUrl;
  }

  public void setLinkUrl(String linkUrl) {
    this.linkUrl = linkUrl;
  }


  public Integer getModuleOrder() {
    return moduleOrder;
  }

  public void setModuleOrder(Integer moduleOrder) {
    this.moduleOrder = moduleOrder;
  }


  public String getParentModule() {
    return parentModule;
  }

  public void setParentModule(String parentModule) {
    this.parentModule = parentModule;
  }


  public String getModuleDesc() {
    return moduleDesc;
  }

  public void setModuleDesc(String moduleDesc) {
    this.moduleDesc = moduleDesc;
  }


  public String getExpanded() {
    return expanded;
  }

  public void setExpanded(String expanded) {
    this.expanded = expanded;
  }


  public String getLeaf() {
    return leaf;
  }

  public void setLeaf(String leaf) {
    this.leaf = leaf;
  }

  @Override
  public String toString() {
    return "SysModule{" +
            "moduleId='" + moduleId + '\'' +
            ", moduleCode='" + moduleCode + '\'' +
            ", moduleName='" + moduleName + '\'' +
            ", linkUrl='" + linkUrl + '\'' +
            ", moduleOrder=" + moduleOrder +
            ", parentModule='" + parentModule + '\'' +
            ", moduleDesc='" + moduleDesc + '\'' +
            ", expanded='" + expanded + '\'' +
            ", leaf='" + leaf + '\'' +
            ", code=" + code +
            ", checked=" + checked +
            ", open=" + open +
            '}';
  }
}
